<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>横向导航栏</title>
		<style type="text/css">
			*{margin: 0;padding: 0;font-size: 20px}
			ul{list-style: none;}
			li{float: left;width: 100px;}	
			/*display: block  将a标签设置为块状元素*/
			a{color: #333;text-decoration: none;display: block;}
			
			.mybar li a{width: 98px;height: 25px;background-color: #fcc;margin-bottom: 1px;text-align: center;}
			.mybar li a:hover{ background-color:#F60; color:#fff}
		</style>
	</head>
	<body>
		<ul class="mybar">
			<li><a href="#">春款衬衫</a></li>
			<li><a href="#">连衣裙</a></li>
			<li><a href="#">风衣</a></li>
			<li><a href="#">半身裙</a></li>
			<li><a href="#">打底裤</a></li>
		</ul>
	</body>
</html>